#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <sys/stat.h>
#include <cmath>
#include <algorithm>
#include <cstring>
#include "Oasis.h"
using namespace std;
extern string filepath;
extern ofstream outfile;
extern bool allow_color;
extern ofstream logfile;
extern const char* log_file;
extern bool verbose;

bool FileExists(string strFilename);
string tolowercase(string str);
void write_file(vector<string> file_content,const char* path);
void write(string content,string color="0", bool force=false);
void ewrite(string content,string color="0", bool force=false);
void help(string title, string content);
void insert_vs(vector<string>& vstring,vector<string> vstring2,int& line_amount,int line);
bool read_file(vector<string>& file, int& line_amount,const char* path);
string itoa(int value, int base=10);
void fix_line_newline(string& s);
bool in_array(char val, char* array);
int in_array_int(char val, char* array);